package execution;

public class UnclosedLoopException extends Exception {

	public int getBeginIndex() {
		return beginIndex;
	}

	private static final long serialVersionUID = -6760117405972485604L;
	private final int beginIndex;
	private final char unmatched;
	
	public UnclosedLoopException(char unmatched, int beginIndex) {
		this.unmatched = unmatched;
		this.beginIndex = beginIndex;
	}

	public char getUnmatched() {
		return unmatched;
	}

}
